<template>
  <div>
    <h1>回收站</h1>
    <ul v-for="file in files">
      <li>1</li>
      <li>{{file.fileId}}</li>
      <li>{{file.fileName}}</li>
    </ul>
  </div>
</template>

<script>
import axios from "axios";

export default {
  name: "Garbage",
  data(){
    return{
      files:[]
    }
  },
  mounted() {
    this.getFile()
  },
  methods:{
    getFile(){
      axios.get("http://localhost:8081/recycle/showGarbage/1",{}).then(res=>{
        console.log(res.data);
        this.files=res.data;
      })
    }
  }
}
</script>

<style scoped>

</style>
